<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="com.demo.entity.Message" %>    
<%@ page import="java.util.ArrayList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>留言管理-留言信息</title>
</head>
<body>
    <fieldset>
        <legend style="color: #00f" > <h3 >留言信息 . . . </h3></legend>
        <table>
            <tr style="color: #00f" height="20px">
                <th width="80px">留言者</th>
                <th>留言信息</th>
                <th width="240px">留言时间</th>
                <th width="80px">是否删除</th>
            </tr>
	        <% ArrayList<Message> message = (ArrayList<Message>)session.getAttribute("messageList");
	              for(Message msg : message){
	        %>
            <tr><th><%=msg.getUsername() %></th>
                    <th><%=msg.getContent() %></th>
                    <th><%=msg.getInfotime() %></th>
                    <th><a href="deleteMessageInfomation/<%=msg.getContent() %>">删除</a></th>
           </tr>
            <%} %>
             <tr height="60px"><th colspan="4" align="right"><a href="/WebStoreSSM/views/pageAdmin.jsp">返回系统管理</a></th></tr>
        </table>
    </fieldset>
</body>
</html>